import Vue from 'vue';
import VueResource from 'vue-resource';
import App from './App'
import store from './store'
import router from './router'
import $ from 'jquery'

// import iView from 'iview';
// import 'iview/dist/styles/iview.css';


import 'assets/semantic/diststatic/semantic.min.css'
import 'assets/animate.min.css'
import 'assets/font-awesome/css/font-awesome.min.css'
import 'assets/semantic/diststatic/semantic.min'
import 'assets/lib/jquery.address.js'

import './myuse/index'



var VueCookie = require('vue-cookie');
require('./array_append.js');
require('./jquery_extend.js');
require('./valid');

// import TreeView from "vue-json-tree-view";
// Vue.use(TreeView);

// import VuePhotoSwipe from 'vue-photoswipe'
//
// Vue.use(VuePhotoSwipe);

//yconsole.log(process.env)
Vue.use(VueResource);
Vue.use(VueCookie);
// Vue.use(iView);

Vue.config.keyCodes = {
    v: 86,
    f1: 112,
    f12: 123,
    mediaPlayPause: 179,
    up: [38, 87]
}


const app = new Vue({
    router,
    el: '#app',
    store,
    template: '<App/>',
    components: {App}
});


